package com.share.shareplatform.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Type {

    private Long id;
    @NotBlank(message = "名称不能为空")
    @Length(max=20,message ="名称太长")
    private String name;
}
